.TH std::counting_semaphore::counting_semaphore 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::counting_semaphore::counting_semaphore \- std::counting_semaphore::counting_semaphore

.SH Synopsis
   constexpr explicit counting_semaphore( std::ptrdiff_t desired ); \fB(1)\fP \fI(since C++20)\fP
   counting_semaphore( const counting_semaphore& ) = delete;        \fB(2)\fP \fI(since C++20)\fP

   1) Constructs an object of type std::counting_semaphore with the internal counter
   initialized to desired.
   2) Copy constructor is deleted.

.SH Preconditions

   1) Both desired >= 0 and desired <= max() are true.

.SH Parameters

   desired - the value to initialize counting_semaphore's counter with

.SH Exceptions

   Throws nothing.
